<?php
    
interface Marjory_Service_ResponseWriter_Interface {
    /**
     * @param array $fieldNames Array of fields to include in the response
     */
    public function includeFields(Array $fieldNames);
    
    /**
     * @param array $results Array of Marjory_Document objects
     */
    public function setResponse(Marjory_Service_ResultProxy $results);
    
    /**
     * Returns the response string in the desired format
     * @return string
     */
    public function __toString();
}
